FROM openjdk:8u201-jdk-alpine3.9

RUN apk add --update ttf-dejavu fontconfig && rm -rf /var/cache/apk/*

VOLUME /tmp

ADD target/*.jar app.jar

RUN sh -c 'touch /app.jar'

ENV JAVA_OPTS=""

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]